<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip');
jimport( 'joomla.html.html.select' ); ?>
<?php
	// Set toolbar items for the page
	$edit		= JRequest::getVar('edit',true);
	$text = !$edit ? JText::_( 'New' ) : JText::_( 'Edit' );
	JToolBarHelper::title(   JText::_( strtoupper('Htbn_ngay_sinh_nhat') ).': <small><small>[ ' . $text.' ]</small></small>' );
	JToolBarHelper::save();
	if (!$edit)  {
		JToolBarHelper::cancel();
	} else {
		// for existing items the button is renamed `close`
		JToolBarHelper::cancel( 'cancel', 'Close' );
	}
?>
<script language="javascript" type="text/javascript">
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}

		// do field validation
		submitform( pressbutton );
	}
</script>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm" id="adminForm">
<div class="col width-70">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>
  <table class="admintable">
    <tr>
      <td width="100" align="right" class="key"><label for="ho_ten"> <?php echo JText::_( 'FIELD_HO_TEN' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="ho_ten" id="ho_ten" size="72" maxlength="250" value="<?php echo $this->htbn_ngay_sinh_nhat->ho_ten;?>" />
      </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="ngay_sinh"> <?php echo JText::_( 'FIELD_NGAY_SINH' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['ngay_sinh'], 'ngay_sinh', 'ngay_sinh', "%Y-%m-%d", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="wts_htbn_cong_ty_id"> <?php echo JText::_( 'FIELD_WTS_HTBN_CONG_TY_ID' ); ?>: </label>
      </td>
      <td>
	  <?php echo $this->lists['wts_htbn_cong_ty_id']; ?>
	  </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="wts_htbn_san_pham_id"> <?php echo JText::_( 'FIELD_WTS_HTBN_SAN_PHAM_ID' ); ?>: </label>
      </td>
      <td>
	 <?php echo $this->lists['wts_htbn_san_pham_id']; ?>	  
      </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="don_gia"> <?php echo JText::_( 'FIELD_DON_GIA' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="don_gia" id="don_gia" size="72" maxlength="250" value="<?php echo $this->htbn_ngay_sinh_nhat->don_gia;?>" />
      </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="mo_ta"> <?php echo JText::_( 'FIELD_MO_TA' ); ?>: </label>
      </td>
      <td><?php
				// parameters : areaname, content, width, height, cols, rows, show xtd buttons
				echo $this->editor->display( 'mo_ta',  $this->htbn_ngay_sinh_nhat->mo_ta, '500', '300', '60', '20', array('pagebreak', 'readmore') ) ;
			?>
      </td>
    </tr>
  </table>
</fieldset>
</div>

<div class="col width-30">
<?php
			echo $this->pane->startPane("params-pane");
			$title1 = JText::_( 'MORE_DETAILS');	
			$title = JText::_( strtoupper('Parameters') );		
			echo $this->pane->startPanel( $title1, "detail-page" );
			?>
			<table align="center">
				<tr>
     				<td valign="top" align="right" class="key"><?php echo JText::_( 'FIELD_PUBLISHED' ); ?>: </td>
     				<td><?php echo $this->lists['published']; ?> </td>
    			</tr>

				<tr>
      				<td valign="top" align="right" class="key"><label for="created"> <?php echo JText::_( 'FIELD_CREATED' ); ?>: </label>
      				</td>
      				<td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['created'], 'created', 'created', "%Y-%m-%d %H:%M:%S", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    			</tr>

				<tr>
      				<td valign="top" align="right" class="key"><label for="created"> <?php echo JText::_( 'FIELD_MODIFIED' ); ?>: </label>
      				</td>
					<td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['modified'], 'modified', 'modified', "%Y-%m-%d %H:%M:%S", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    			</tr>

				<tr>
      				<td valign="top" align="right" class="key"><label for="ordering"> <?php echo JText::_( 'FIELD_ORDERING' ); ?>: </label>
      				</td>
      				<td><?php echo $this->lists['ordering']; ?> </td>
    			</tr> </table>
		<?php 
			echo $this->pane->endPanel();
			echo $this->pane->startPanel( $title, "detail-page" );	
			echo $this->params->render('params');		
			echo $this->pane->endPanel();
			echo $this->pane->endPane();
		?>	
</div>   
  <div class="clr"></div>
  <input type="hidden" name="option" value="com_htbn_ngay_sinh_nhat" />
  <input type="hidden" name="cid[]" value="<?php echo $this->htbn_ngay_sinh_nhat->wts_htbn_ngay_sinh_nhat_id; ?>" />
  <input type="hidden" name="task" value="" />
  <?php echo JHTML::_( 'form.token' ); ?>
</form>
